package com.swufe.week5;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
    TextView scorea;
    int score=0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        scorea=findViewById(R.id.scorea);
    }
private void show(){
        scorea.setText(String.valueOf(score));
}
public void btn3(View v){
        score += 3;
        show();
    }
public void btn2(View v) {
    score += 2;
    show();
    }
public void btn1(View v){
        score += 1;
        show();
    }
}